﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once
#include "IParameterValueStorage.h"
#include "IGeometry.h"

namespace gcmp
{
    /// \brief 几何参数接口类
    class GCMP_MODEL_INTERFACE_EXPORT IParameterValueGeometry : public IParameterValueStorage
    {
    public:
        DEFINE_CAST_DERIVED(gcmp::IParameterValueGeometry, gcmp::IParameterValueStorage)

    public:
        /// \brief 创建一个几何参数值存储对象
        /// \return 参数值存储对象
        static OwnerPtr<IParameterValueGeometry> Create(OwnerPtr<IGeometry> opGeometry);

        /// \brief 获取几何类型参数值
        /// \return 几何类型参数值
        virtual const IGeometry* GetValue() const = 0;

        /// \brief 设置几何参数数据
        /// \param opGeometry 几何参数数据
        /// \return 如果设置成功返回true，否则返回false
        virtual bool SetValue(OwnerPtr<IGeometry> opGeometry) = 0;
    };
}


